<form class="layui-form" lay-filter="LAY-app-course-document-form" id="LAY-app-course-document-form"
      style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">当前课程</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" readonly>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">课件名称</label>
        <div class="layui-input-block">
            <script type="text/html" template>
                <input type="text" name="title" lay-verify="required" placeholder="请输入..." autocomplete="off"
                       class="layui-input" value="{{ d.params.title || '' }}">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">课件路径</label>
        <div class="layui-col-md8">
            <script type="text/html" template>
                <input type="text" name="filepath" placeholder="请选择文件" autocomplete="off" class="layui-input"
                       value="{{ d.params.filepath || '' }}">
            </script>
        </div>
        <button style="float: left;" type="button" class="layui-btn" layadmin-event="select_file">选择文件</button>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-inline">
            <input type="text" name="sort" placeholder="请输入..." autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-block">
            <input type="button" lay-submit lay-filter="LAY-app-course-document-submit" value="确认" class="layui-btn">
        </div>
    </div>
</form>
